home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
COMM
/
WTERM110.ARJ
/
READER.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-05-05
|
2KB
|
59 lines
@echo off
:: If you have problems with running out of environment space,
:: put a SET DUMMY=123456789012345678901234567890 in your
:: AUTOEXEC.BAT and then recover 30 bytes with the next set
:: command. Since you are doing this in a shell, you aren't
:: really deleting it. It will be there the next time you run it
:: as well.
SET DUMMY=
:: The next line checks for a new QWK packet. Change the drive
:: and path to your download directory.
IF EXIST D:\TEL\LD\*.QWK GOTO OMK :: See if any .QWK packets
IF EXIST D:\TEL\LD\*.OKZ GOTO OMK :: See if any .OKZ packets
:CHKEDS
IF EXIST D:\TEL\LD\EDS*.ZIP GOTO EDS
GOTO DONE :: Neither, quit
:: If there is a .QWK or .OKZ packet, we wind up here
:OMK
DVLOAD OM
IF NOT ERRORLEVEL 1 GOTO DONE
:: If DV not loaded or error
D: :: Change to the drive your reader is on
CD \OMK :: And the directory
OMKREAD -q-l :: Change to your reader's name. OMK (Opus
:: Message Kit) by Roland Brown is highly
:: recommended. It now reads both .OMK and
:: .QWK format! Note that OMKREAD deletes
:: the packet when done. If your reader
:: doesn't do this, you need to do it in
:: your batch file. If you don't, you wind
:: up in the reader on the next disconnect.
:: It would probably be better to move the
:: packet to your reader's directory and
:: delete it from your download directory.
GOTO CHKEDS
:EDS
DVLOAD FS
IF NOT ERRORLEVEL 1 GOTO DONE
:: If DV not loaded or error. G: is my RAMDISK.
DEL G:\EDSHOM*.CAP
PKUNZIP -o D:\TEL\LD\EDSHOM* *.* G: > G:\JUNK
DEL G:\JUNK
LIST G:\EDSHOM*.CAP /M
DEL D:\TEL\LD\EDSHOM*.ZIP
:DONE :: All done
EXIT